UNPKG

@thunderstorefront/api-mock

Version:

Create Nuxt extendable layer with this GitHub template.

7 lines (5 loc) 196 B
import { stores } from '../../../data/stores'; export default defineEventHandler((event) => { const id = getRouterParam(event, 'id'); return stores.find((store) => store.storeId === id); });